package homework12月15号.homework2;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by dingw on 2019/12/11.
 */
//商品类别
public class Category {
    private String id;
    private String cname;
    private List<Product> productList = new ArrayList<>();
    public Category() {
    }

    public Category(String id, String cname) {
        this.id = id;
        this.cname = cname;
    }

    public Category(String id, String cname, List<Product> productList) {
        this.id = id;
        this.cname = cname;
        this.productList = productList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public List<Product> getProductList() {
        return productList;
    }

    public void setProductList(List<Product> productList) {
        this.productList = productList;
    }
}
